package cn.lili.timetask.handler.impl.union;

import cn.lili.modules.order.order.client.OrderClient;
import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@RequiredArgsConstructor
public class UnionGreenScoreEveryHourExecute implements EveryHourExecute {
    private final OrderClient orderClient;

    /**
     * 每天0点执行给工会会长发放经费
     */
    @Override
    public void execute() {
        if (LocalDateTime.now().getHour() == 0) {
            //orderClient.executeUnionGreenScoreLastMonthOrder();
        }
    }
}